﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ud_Article.Business
{
    public class DBArticleMenu
    {
        LinqArticle db = new LinqArticle();

        public List<ud_ArticleCategory> GetCategories(int moduleID)
        {
            var result = from p in db.ud_ArticleCategories
                         where p.ModuleID.Equals(moduleID)
                         select p;
            return result.ToList<ud_ArticleCategory>();
        }

    }
}
